package com.chidopi.market.bookstore.domain;

import java.util.Map;

public class BookZipBackup {
	
    private String zipfile;
    private String zipfilename;
    private Integer book_id;
    private String bookname;
    private BookItems book;
    private String create_time;
    private String memo;
        
    public BookZipBackup(){
    	
    }
    
	public BookZipBackup(Map<String, Object> map) {
		zipfile = (String)map.get("ZIPFILE");
		zipfilename = (String)map.get("ZIPFILENAME");
		book_id = new Integer(map.get("BOOK_ID").toString());
		bookname = (String)map.get("BOOKNAME");
		//SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");		
		create_time = map.get("CREATE_TIME").toString();
		if (map.get("MEMO") == null)
			memo = "";
		else
			memo = map.get("MEMO").toString();
	}
	
	public String getZipfile() {
		return zipfile;
	}
	public void setZipfile(String zipfile) {
		this.zipfile = zipfile;
	}
	public String getZipfilename() {
		return zipfilename;
	}
	public void setZipfilename(String zipfilename) {
		this.zipfilename = zipfilename;
	}
	public BookItems getBook() {
		return book;
	}
	public void setBook(BookItems book) {
		this.book = book;
	}
	public String getCreate_time() {
		return create_time;
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}
	public Integer getBook_id() {
		return book_id;
	}
	public void setBook_id(Integer book_id) {
		this.book_id = book_id;
	}

	public String getBookname() {
		return bookname;
	}

	public void setBookname(String bookname) {
		this.bookname = bookname;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
